package com.km.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.km.demo.entities.Book;
import com.km.demo.jpa.BookJpa;
import com.km.demo.utils.JsonResult;

@Service
public class BookService {
	@Autowired
	private BookJpa bookJpa;
	public JsonResult putInfo(double price){
		List<Book> books=bookJpa.queryByPrice(price);
		JsonResult result=new JsonResult();
		result.setStatus(1);
		result.setMsg("成功");
		result.setData(books);
		return result;
	}
}
